﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentValidation;
using STLGROUP.Layers.Common;

namespace STLGROUP.Layers.DataAccessLayers.Validators
{
    public class ACL_ModuleValidator : AbstractValidator<ACL_Module>
    {
        public ACL_ModuleValidator()
        {
            RuleFor(s=>s.MaModule).NotEmpty().WithMessage(Const.VALD_PROPERTY_KHONG_BO_TRONG).WithPropertyName("Mã module");
            RuleFor(s => s.TenModule).NotEmpty().WithMessage(Const.VALD_PROPERTY_KHONG_BO_TRONG).WithPropertyName("Tên module");
        }
    }
}
